﻿using UnityEngine;
using ZerAx.Tweaks;

namespace BlockOS.Client
{
    public class Entity : MonoBehaviour
    {
        public string entityName = "Entity";
        public int typeId = 0;

        public void Refresh(EntityData data)
        {
            transform.position = data.GetPosition().ToVec();
            transform.rotation = Quaternion.Euler(data.rx, data.ry, data.rz);
            entityName = data.name;
            typeId = data.typeId;
        }
    }
}
